package meeting.subject;

import meeting.department.AbstractPart;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public abstract class Subject {

    protected List<String> meetings = new ArrayList<>();
    protected List<AbstractPart> abstractParts = new LinkedList<>();
    public void add(AbstractPart abstractPart){
        abstractParts.add(abstractPart);
    }
    public void remove(AbstractPart abstractPart){
        abstractParts.remove(abstractPart);
    }

    public void addMeeting(String meeting){
        meetings.add(meeting);
    }

    public void removeMeeting(String meeting){
        meetings.remove(meeting);
    }
    public abstract void notifyEmployee();
}
